/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Arrays;

/**
 * <p>Project: javase202202 - Arr2D1
 * <p>Powered by Lisi On 2022-06-06 14:08:51
 * <p>Created by IntelliJ IDEA
 *

 * @version 1.0
 * @since 17
 */
public class Arr2D1 {
    public static void main(String[] args) {
        int[][] a = new int[][]{{1,2,3},{11,22,33,44}};

        String[][] ss = new String[3][2];
        ss[0][0] = "李四";
        ss[0][1] = "张三";
        ss[1][0] = "赵六";
        ss[1][1] = "王五";
        ss[2][0] = "李强";
        ss[2][1] = "赵勇";

        for(String[] s : ss){
            System.out.println(Arrays.toString(s));
        }

        ss[1][1] = "王强";
        System.out.println(ss[1][1]);

        for (int i=0;i<ss.length;i++){
            String[] t = ss[i];
            for(int j=0;j<t.length;j++){
                System.out.println(t[j]);
            }
        }

    }
}
